namespace SumerCoreDevOps.Shared.Models.Messages;

/// <summary>
/// 清理结果消息
/// </summary>
public class CleanupResultMessage
{
    /// <summary>
    /// 任务ID
    /// </summary>
    public long TaskId { get; set; }

    /// <summary>
    /// 是否成功
    /// </summary>
    public bool Success { get; set; }

    /// <summary>
    /// 清理的文件数量
    /// </summary>
    public int DeletedFileCount { get; set; }

    /// <summary>
    /// 释放的空间（MB）
    /// </summary>
    public long FreedSpaceMB { get; set; }

    /// <summary>
    /// 残留文件列表（清理失败的文件）
    /// </summary>
    public List<string> RemainingFiles { get; set; } = [];

    /// <summary>
    /// 错误信息
    /// </summary>
    public string? ErrorMessage { get; set; }
}
